package gagak.framework.web.adapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
 * @program: ce
 * @description: 映射器适配器
 * @author: houhong
 * @create: 2022-11-23 15:47
 */
public interface HandlerAdapter {

    /*
     * 判断当前适配器是否支持handler
     */
    Boolean support(Object handler);

    /*
     * 使用handler 进行真正处理handler 里面的逻辑
     */
    Object handle(HttpServletRequest request, HttpServletResponse response, Object handler);


    Long getLastModified(HttpServletRequest request, Object handler);

}